/*
 * PopupLoginDialog.hpp
 *
 *  Created on: Jun 4, 2012
 *      Author: guillou
 */

#ifndef POPUPLOGINDIALOG_HPP_
#define POPUPLOGINDIALOG_HPP_

#include <ui_logindialog.h>
#include <PopupLibTypes.hpp>

class PopupLoginDialog : public QDialog, private Ui_LoginDialog
{
  Q_OBJECT

public:
  PopupLoginDialog(QWidget *parent = 0);
  virtual ~PopupLoginDialog() {}

private:
  bool saveLoginParameters();

public slots:
  //@Override
  virtual void accept();
  void slot_badConnectionParams(Popup::ConnectionEcode p_ecode);

signals:
  void signal_setConnectionParams(const QString & p_login,
                                  const QString & p_password,
                                  const QString & p_server,
                                  int p_port, bool p_register);
  void signal_restartClient();
};

#endif /* POPUPLOGINDIALOG_HPP_ */
